package Animal;

/**
 * @Author czl
 * @Date 2024-03-29
 */
public class MainTest{
    public static void main(String[] args) {
        Dog dog = new Dog("刘椿");

        Cat cat = new Cat("温济津");

        Tiger tiger = new Tiger("张露");

        People<Dog> zs = new People<>();
        zs.setPet(dog);

        People<Cat> ls = new People<>();
        ls.setPet(cat);

        People<Tiger> ww = new People<>();
        ww.setPet(tiger);

        zs.shopping();
        ls.shopping();
        ww.shopping();
    }
}
